//--------------------------------------------------------------
//
// Qizhi Zhang 
// ezhung@gmail.com
// http://www.moorwind.com
//
//--------------------------------------------------------------
package reader.utils
{
	import mx.collections.ArrayCollection;
	
	import reader.core.ReaderResource;
	
	public class DateRange
	{
		public static const ALL_DATE:uint = 0;
		public static const ONE_WEAK:uint = 1;
		public static const ONE_MONTH:uint = 2;
		public static const THREE_MONTHS:uint = 3;
		public static const SIX_MONTHS:uint = 4;
		public static const ONE_YEAR:uint = 5;
		
		private var resource:XML = ReaderResource.instance.resource;
		
		public function get dateRange():ArrayCollection
		{
			var r:Array = [
				{label:resource.dashboardEditAllDate ,data:ALL_DATE},
				{label:resource.dashboardEdit1W ,data:ONE_WEAK},
				{label:resource.dashboardEdit1M ,data:ONE_MONTH},
				{label:resource.dashboardEdit3M ,data:THREE_MONTHS},
				{label:resource.dashboardEdit6M ,data:SIX_MONTHS},
				{label:resource.dashboardEdit1Y ,data:ONE_YEAR}
				];
			return new ArrayCollection(r);
		}

	}
}